package com.kry.mbs.service;

import java.util.List;

import com.kry.mbs.model.Commercial;
import com.kry.mbs.model.PartnerThirdMatch;
import com.kry.mbs.model.Trade;

public class ElemeReportService {
	
	public void getElemeUnOpenShop() {
		
		System.out.println("getElemeUnOpenShop:");
		List<PartnerThirdMatch> partnerThirdMatchs=PartnerThirdMatch.dao.findShop();
		for (PartnerThirdMatch partnerThirdMatch : partnerThirdMatchs) {
			//System.out.println("partnerThirdMatch:"+partnerThirdMatch.getShopIdenty());
			Trade trade=	Trade.dao.findTradeOfEleme(partnerThirdMatch.getShopIdenty());
			if (trade==null) {
				Commercial commercial =Commercial.dao.findByShopId(partnerThirdMatch.getShopIdenty());
				if (commercial!=null&&commercial.getCommercialID()>0) {
					System.out.println(commercial.getCommercialID()+" , "+commercial.getCommercialName()+" , "+commercial.getCityName());
				}
			}
		}
		
	}
}
